using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIfadeScrene : MonoBehaviour
{
    private Animator anim;
    private void Start()
    {
        anim = GetComponent<Animator>();   
    }
    public void FadeOut() => anim.SetTrigger("fadeout");
    public void FadeIn() => anim.SetTrigger("fadein");
}
